/**
 * 文本链接 a
 */
//保证所有a标签都有href
$("a").each(function(){

	var aHref = this.href;
	if( aHref=="" || aHref==undefined ){
			$(this).attr("href","javascript:void(0)");
	}
	
	//给a标签加title
	var aTitle = this.title;
	var aText = this.text;
	
	if( aTitle=="" || aTitle==undefined ){
		if( aText!="" || aText!=undefined ){
			$(this).attr("title",$.trim(aText));
		}
	}
	
});


//select下的option添加title
$("option").each(function(){
	var oTitle = this.title;
	var oText = this.text;
	if( oTitle=="" || oTitle==undefined ){
		if( oText!="" || oText!=undefined ){
			$(this).attr("title",$.trim(oText));
		}
	}
});


$("#textfield").attr("title","请输入关键字");
$("#textfield").attr("placeholder","请输入关键字");
$("#textfield").next().attr("title","搜索");

//为目录页的翻页添加title
if( $(".CurrChnlCls").length > 0 ){
	$('#num').attr({'title':'页数', 'placeholder':'页数'});
	$('.zt10 input[type="submit"]').attr({'title':'跳转按钮', 'placeholder':'跳转按钮'});
}

